package com.jack.design_patterns.structural.bridge;

/**
 * 省去了创建很多类
 */
public class MainTest {
    public static void main(String[] args) {
        AbstractPhone phone = new MeizuPhone();
        phone.setSale(new OfflineSale("线下渠道", 3999.0));
        String meizuPhone = phone.getPhone();
        System.out.println(meizuPhone);
    }
}
